package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.BtyBorrower;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 借贷款用户表 Mapper 接口
 * </p>
 * @author liuy
 * @since
 */
public interface BtyBorrowerMapper extends BaseMapper<BtyBorrower> {

    /**
     * 获取巡店沟通列表
     */
    Page<Map<String, Object>> list(@Param("page") Page page,@Param("condition") String condition,@Param("tel") String tel);

//    List<BtyBorrowerFlowInformation> borrowerInfo();
//    List<BtyBorrowerFlowInformation> listByBorrowerId(@Param("borrowerId") String borrowerId);
    /**
     * 获取已借贷款人数
     */
    List<BtyBorrower> borrowed();
    /**
     * 获取未借贷款人数
     */
    List<BtyBorrower> notBorrowed();

    /**
     * 获取还款信息
     * @return
     */
    List<BtyBorrower> borrowerList();
}
